<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>
<%@include file="../common/jscss.jsp"%>

<script language="javascript">
<!--

	var grid_ae = null;
	$(function(){
		grid_ae = $("#journey_list").ligerGrid({
				checkbox: true,
	            columns: [
	            { display: '行程id', name: 'id', isSort : false, width: 100 },
	            { display: '标题', name: 'title',isSort : false, width: 600 },
	            { display: '开始时间', name: 'startDate',isSort : false, width: 200 },
	            { display: '天数', name: 'days',isSort : false, width: 200 }
	            ], 
	            pageSize:10,
	            root :'list',
	            record:'totalRecord',
	            url: "/misc/journey/getJourney.htm", 
	            width: '99%',height:'99%',
	            isChecked: f_isChecked, onCheckRow: f_onCheckRow, onCheckAllRow: f_onCheckAllRow
	        });
	
			
			$("#parent").ligerComboBox({
				width : 215,
				selectBoxWidth : 215,
				selectBoxHeight : 180,
				valueField : 'mark',
				textField : 'text',
				treeLeafOnly : false,
				tree : {
					checkbox : false,
					btnClickToToggleOnly : false,
					url : '/misc/cms/channelTree.htm'
				}
			});

	});
	function search(){
		grid_ae.options.parms = [{name:'title',value:$("#search_name").val()}];
		grid_ae.loadData();
	}
//-->
</script>
<table>
	<tr>
		<td>
			<div id="searchbar">
			   名称：<input id="search_name" type="text" value="${name}"/>
			    <input id="btnOK" type="button" value="查询" onclick="search()" />
			</div>
		</td>
		<td><input type="text" id="parent"/><button onclick="pushJourney()" id="tui_song" style="position:relative;left:220px;top:-22px; margin:0 0 -20px 0;">推送</button></td>
	</tr>
</table>

<div id="journey_list" style="margin:0; padding:0"></div>